package birken;

public class Person {
	
	private String startnr, name, club, clas;
	private Summary sum;
	
	public Person(int nr){
		sum = new Summary(nr);
		startnr = sum.getStartnr();
		name = sum.getName();
		club = sum.getClub();
		clas = sum.getClas();
	}
	
	public Summary getSum() {
		return sum;
	}
	
	public String getStartnr() {
		return startnr;
	}

	public String getName() {
		return name;
	}

	public String getClub() {
		return club;
	}

	public String getClas() {
		return clas;
	}

	@Override
	public String toString(){
		String out = "Name: "+name+"<br>"
				+"Startnummer: "+startnr+"<br>"
				+"Klubb: "+club+"<br>"
				+"Klasse: "+clas+"<br><br>";
		return out;
	}
	
}
